<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<div id="content" class="col-lg-10 col-sm-10">
    <!-- content starts -->
    <div>
        <ul class="breadcrumb">
            <li>
                <a href="#">Home</a>
            </li>
            <li>
                <a href="#">Edit Student</a>
            </li>
        </ul>
    </div>
    <div class="row">
        <div class="box col-md-12">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2><i class="glyphicon glyphicon-edit"></i> Edit Student </h2>

                   
                </div>
                <div class="box-content">
                    <form role="form" action="UpdateStudentAction.do" method="post">

                        <input type="hidden" name="id" value="${applicationScope.detail_student.id}">
                        <div class="form-group">
                            <label for="exampleInputEmail1">Enrollment Number</label>
                            <input type="text" name="enrollmentno" value="${applicationScope.detail_student.enrollmentno}" class="form-control" id="exampleInputEmail1" placeholder="Enter EnrollmentNo">
                            <span style="color: #91170a;font-family: serif;font-size: 14px" id="enrollmentno_error_txt"><html:errors property="enrollmentno" ></html:errors></span>
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">First Name</label>
                            <input type="text" name="fname" value="${applicationScope.detail_student.fname}" class="form-control" id="exampleInputEmail1" placeholder="Enter First Name">
                            <span style="color: #91170a;font-family: serif;font-size: 14px" id="fname_error_txt"><html:errors property="fname" ></html:errors></span>
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Middle Name</label>
                            <input type="text" name="mname" value="${applicationScope.detail_student.mname}" class="form-control" id="exampleInputEmail1" placeholder="Enter Middle Name">
                            <span style="color: #91170a;font-family: serif;font-size: 14px" id="fmame_error_txt"><html:errors property="mname" ></html:errors></span>
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Last Name</label>
                            <input type="text" name="lname" value="${applicationScope.detail_student.lname}" class="form-control" id="exampleInputEmail1" placeholder="Enter Last Name">
                            <span style="color: #91170a;font-family: serif;font-size: 14px" id="lname_error_txt"><html:errors property="lname" ></html:errors></span>
                        </div>


                        <div class="form-group">
                            <label for="exampleInputEmail1">Gender</label>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="gender" id="optionsRadios1" value="male" checked="">
                                    Male
                                </label>
                            </div>
                            <div class="radio">
                                <label>
                                    <input type="radio" name="gender" id="optionsRadios1" value="female" checked="">
                                    Female
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="exampleInputEmail1">Email</label>
                            <input type="email" name="email" value="${applicationScope.detail_student.email}" class="form-control" id="exampleInputEmail1" placeholder="Enter Email">
                            <span style="color: #91170a;font-family: serif;font-size: 14px" id="email_error_txt"><html:errors property="email" ></html:errors></span>
                        </div>
                        <div class="form-group">
                            
                            <input type="hidden" name="password" value="${applicationScope.detail_student.password}" class="form-control" id="exampleInputEmail1" placeholder="Enter Password">
                            <!--<span style="color: #91170a;font-family: serif;font-size: 14px" id="password_error_txt"><html:errors property="password" ></html:errors></span>-->
                        </div>
                       
                        <div class="form-group">
                            <label for="exampleInputEmail1">Contact Number</label>
                            <input type="text" name="contact" value="${applicationScope.detail_student.contact}" class="form-control" id="exampleInputEmail1" placeholder="Enter Contact">
                            <span style="color: #91170a;font-family: serif;font-size: 14px" id="contact_error_txt"><html:errors property="contact" ></html:errors></span>
                        </div>
                        
                        <c:if test="${sessionScope.usertype eq 'admin'}">
                                 <input type="hidden" name="addedby" value="${sessionScope.admin.id}">
                                 
                        </c:if>


                        <div class="form-group">
                            <button type="submit" class="btn btn-default">Submit</button>
                    </form>


                </div>
            </div>
            <!--/span-->

        </div><!--/row-->

        <!-- content ends -->
    </div><!--/#content.col-md-0-->
</div>
</div>